﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using H2.NET.Data.Common;
using H2.NET.Web.Pages.SMD.Model;

namespace H2.NET.Web.Pages.SMD.Service
{
    public static class DealerService
    {
        public static t_smd_Dealer GetByCode(string code)
        {
            return (t_smd_Dealer._DealerCode == code).ListFirst<t_smd_Dealer>(Storage.Context3);
        }
        public static t_smd_Dealer GetById(int id)
        {
            return (t_smd_Dealer._DealerID == id).ListFirst<t_smd_Dealer>(Storage.Context3);
        }
    }
}